<?php
use dmstr\widgets\Menu;
echo Menu::widget(
            [
                'options' => ['class' => 'sidebar-menu'],
                'items' => [
                    ['label' => 'Menu', 'options' => ['class' => 'header']],
                    
					[
                        'label' => Yii::t('app', '网站设置'),
                        'url' => ['/setting/index'],
                        'icon' => 'fa fa-lock',
                        'active' => 'setting' === Yii::$app->controller->id,
                        'visible' => \Yii::$app->user->can('setting/index'),
                    ],
                  
                    [
                        'label' => Yii::t('app', '验证码管理'),
                        'url' => ['/yanzheng/index'],
                        'icon' => 'fa  fa-cc-discover',
                        'active' => 'yanzheng' === Yii::$app->controller->id,
                        'visible' => \Yii::$app->user->can('yanzheng/index'),
                    ],
                    [
                        'label' => Yii::t('app', '后台日志'),
                        'url' => ['/admin-log/index'],
                        'icon' => 'fa fa-black-tie',
                        'active' => 'log' === Yii::$app->controller->id,
                        'visible' => \Yii::$app->user->can('admin-log/index'),
                    ],
                    [
                        'label' => Yii::t('app', '数据库管理'),
                        'url' => ['/dbmanage/index'],
                        'icon' => 'fa fa-flickr',
                        'active' => 'dbmanage' === Yii::$app->controller->id,
                       'visible' => \Yii::$app->user->can('dbmanage/index'),
                    ],
                    [
                        'label' => Yii::t('app', '在线留言'),
                        'url' => ['/message/index'],
                        'icon' => 'fa fa-rebel',
                        'active' => 'message' === Yii::$app->controller->id,
                        'visible' => \Yii::$app->user->can('message/index'),
                    ],
                    [
                        'label' => Yii::t('app', '消息通知'),
                        'url' => ['/notice/index'],
                        'icon' => 'fa fa-pied-piper',
                        'active' => 'notice' === Yii::$app->controller->id,
                       'visible' => \Yii::$app->user->can('notice/index'),
                    ],
					[
                        'label' => Yii::t('app', '客服管理'),
                        'url' => ['/customer/index'],
                        'icon' => 'fa fa-user',
                        'active' => 'customer' === Yii::$app->controller->id,
                        'visible' => \Yii::$app->user->can('customer/index'),
                    ],
                    [
                        'label' => Yii::t('app', '微信菜单'),
                        'url' => ['/wechat/index'],
                        'icon' => 'fa fa-reddit-square',
                        'active' => 'wechat' === Yii::$app->controller->id,
                        'visible' => \Yii::$app->user->can('wechat/index'),
                    ],
                    [
                        'label' => Yii::t('app', '模型管理'),
                        'url' => ['/modelled/index'],
                        'icon' => 'fa  fa-chrome',
                        'active' => 'modelled' === Yii::$app->controller->id ||   'modeloption' === Yii::$app->controller->id,
                        'visible' => \Yii::$app->user->can('modelled/index'),
                    ],
                    [
                        'label' => Yii::t('app', '清除缓存'),
                        'url' => ['/setting/delcache'],
                        'icon' => 'fa fa-lock',
                        'active' => 'setting' === Yii::$app->controller->id,
                        'visible' => \Yii::$app->user->can('setting/index'),                    ],
                ],
            ]
        )

?>